{include file='header'/}
<body class="pear-container">
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-btn-group">
            <a class="layui-btn layui-btn-normal layui-btn-sm"
               data-open="<?php echo url('config/customConfigAdd'); ?>" data-reload="2" data-title="添加配置">
                <i class="fa fa-plus"></i> 添加配置</a>
        </div>
        <table class="layui-table">
            <thead>
            <tr class="text-c">
                <th width="50">id</th>
                <th>配置名称</th>
                <th>配置类型</th>
                <th>配置值</th>
                <th>简洁说明</th>
                <th>状态</th>
                <th width="120">操作</th>
            </tr>
            </thead>
            <tbody id="tbody">
            <?php
            foreach($data as $vo){
            ?>
            <tr class="text-c">
                <td><?php echo $vo['id'];?></td>
                <td><?php echo $vo['name'];?></td>
                <td><?php echo $vo['fieldtype'];?></td>
                <td><?php echo str_cut($vo['value'],100);?></td>
                <td><?php echo $vo['title'];?></td>
                <td><?php echo $vo['status'];?></td>
                <td>
                    <a class="layui-btn layui-btn-sm layui-btn-normal"
                       data-open="<?php echo url('config/customConfigEdit',['id'=>$vo['id']]);?>"
                       data-title="编辑配置" data-reload="2">编辑</a>
                    <a class="layui-btn layui-btn-danger layui-btn-sm"
                       data-delete="<?php echo url('config/customConfigDel',['id'=>$vo['id']]);?>"
                       data-title="确定要删除此配置吗？" data-reload="2">删除</a>
                </td>
            </tr>
            <?php } ?>
            </tbody>
        </table>

    </div>
</div>

{include file='footer'/}
</body>
</html>
